package com.pactera.madp.cp.api.em;

import lombok.Data;
import lombok.Getter;

@Getter
public enum GZHMsgEnum {
    TEXT(1, "<xml>\n" +
            "<ToUserName><![CDATA[s%]]></ToUserName>\n" +
            "<FromUserName><![CDATA[s%]]></FromUserName>\n" +
            "<CreateTime>s%</CreateTime>\n" +
            "<MsgType><![CDATA[text]]></MsgType>\n" +
            "<Content><![CDATA[s%]]></Content>\n" +
            "</xml>"),
    IMAGE(2, "<xml>\n" +
                  "<ToUserName><![CDATA[s%]]></ToUserName>\n" +
                  "<FromUserName><![CDATA[s%]]></FromUserName>\n" +
                  "<CreateTime>s%</CreateTime>\n" +
                  "<MsgType><![CDATA[image]]></MsgType>\n" +
                  "<Image>\n" +
                  "<MediaId><![CDATA[s%]]></MediaId>\n" +
                  "</Image>\n" +
                  "</xml>"),
    VOICE(3, "<xml>\n" +
            "<ToUserName><![CDATA[s%]]></ToUserName>\n" +
            "<FromUserName><![CDATA[s%]]></FromUserName>\n" +
            "<CreateTime>s%</CreateTime>\n" +
            "<MsgType><![CDATA[voice]]></MsgType>\n" +
            "<Voice>\n" +
            "  <MediaId><![CDATA[s%]]></MediaId>\n" +
            "</Voice>\n" +
            "</xml>"),
    VIDEO(4, "<xml>\n" +
            "<ToUserName><![CDATA[s%]]></ToUserName>\n" +
            "<FromUserName><![CDATA[s%]]></FromUserName>\n" +
            "<CreateTime>s%</CreateTime>\n" +
            "<MsgType><![CDATA[video]]></MsgType>\n" +
            "<Video>\n" +
            "  <MediaId><![CDATA[s%]]></MediaId>\n" +
            "  <Title><![CDATA[s%]]></Title>\n" +
            "  <Description><![CDATA[s%]]></Description>\n" +
            "</Video>\n" +
            "</xml>"),
    MUSIC(5, "<xml>\n" +
            "<ToUserName><![CDATA[s%]]></ToUserName>\n" +
            "<FromUserName><![CDATA[s%]]></FromUserName>\n" +
            "<CreateTime>s%</CreateTime>\n" +
            "<MsgType><![CDATA[music]]></MsgType>\n" +
            "<Music>\n" +
            "  <Title><![CDATA[s%]]></Title>\n" +
            "  <Description><![CDATA[s%]]></Description>\n" +
            "  <MusicUrl><![CDATA[s%]]></MusicUrl>\n" +
            "  <HQMusicUrl><![CDATA[s%]]></HQMusicUrl>\n" +
            "  <ThumbMediaId><![CDATA[s%]]></ThumbMediaId>\n" +
            "</Music>\n" +
            "</xml>"),
    NEWS(6, "<xml>\n" +
            "<ToUserName><![CDATA[s%]]></ToUserName>\n" +
            "<FromUserName><![CDATA[s%]]></FromUserName>\n" +
            "<CreateTime>s%</CreateTime>\n" +
            "<MsgType><![CDATA[news]]></MsgType>\n" +
            "<ArticleCount>s%</ArticleCount>\n" +
            "<Articles>\n" +
            "  <item>\n" +
            "    <Title><![CDATA[s%]]></Title>\n" +
            "    <Description><![CDATA[s%]]></Description>\n" +
            "    <PicUrl><![CDATA[s%]]></PicUrl>\n" +
            "    <Url><![CDATA[s%]]></Url>\n" +
            "  </item>\n" +
            "</Articles>\n" +
            "</xml>");
    private int code;
    private String content;


    GZHMsgEnum(int i, String s) {

    }
}
